/**
 * 
 */
package com.moorecat.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.webkit.WebView;
import android.widget.ImageView;

import com.moorecat.R;

/**
 * 更多 ->关于我们
 * 
 * @author Minglong.Yu
 * @version 1.0
 * @created Jun 22, 2011 12:02:30 PM
 */
public class MoreAboutUs extends Activity implements OnClickListener {
	WebView webView;
	ImageView tellFriendBtn;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.more_about_us);

		webView = (WebView) findViewById(R.id.more_about_us);

		webView.getSettings().setJavaScriptEnabled(false);
		webView.setBackgroundColor(0);
		try {
			webView.loadUrl("file:///android_asset/more/more_about_us.html");
		} catch (Exception e) {
			e.printStackTrace();
		}

		tellFriendBtn = (ImageView) findViewById(R.id.more_tell_friend_btn);
		tellFriendBtn.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		Intent intent = new Intent(Intent.ACTION_VIEW);
		intent.putExtra("sms_body",
				getResources().getText(R.string.tell_friend_sms_content));
		intent.setType("vnd.android-dir/mms-sms");
		startActivity(intent);
	}
}
